<template>
  <div class="filter">
    <el-form :inline="true" :model="formInline" class="demo-form-inline">
      <el-row :gutter="24">
        <el-col :span="4">
          <el-form-item>
            <el-input size="small" v-model="formInline.user" placeholder="按姓名搜索"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="4">
          <el-form-item>
            <el-select size="small" v-model="formInline.region" placeholder="按活动区域搜索">
              <el-option label="区域一" value="shanghai"></el-option>
              <el-option label="区域二" value="beijing"></el-option>
            </el-select>
          </el-form-item>
        </el-col>
        <el-col :span="4">
          <el-form-item>
            <el-button size="small" type="primary" @click="onSubmit">查询</el-button>
          </el-form-item>
        </el-col>
      </el-row>
    </el-form>
  </div>
</template>

<script>
export default {
  data() {
    return {
      formInline: {
        user: '',
        region: ''
      }
    }
  },
  methods: {
    onSubmit() {
      console.log('submit!')
    }
  }
}
</script>

<style lang="less" scoped>
.filter {
  background-color: #fff;
}
</style>
